package com.example.android.models

import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*

/**
 * @ClassName MessageView
 * @Author Ryan Kamanri
 * @Date 2022/6/12
 * @Description
 **/
@Entity
class MessageView(
    val sendUserId: Long,
    val receiveUserId: Long,
    val time: Date,
    val contentType: String,
    val content: Any,
    val viewType: ViewType
) {
    @PrimaryKey(autoGenerate = true)
    var autoId: Long = 0

    enum class ViewType {
        SELF_TEXT,
        SELF_IMAGE,
        OTHER_TEXT,
        OTHER_IMAGE,
        DATETIME
    }

}